package com.ruoyi.tjfx.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 企业各能耗占比对象 tb_tjfx_qynhzb
 *
 * @author ruoyi
 * @date 2023-11-12
 */
public class TbTjfxQynhzb extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 企业 */
    @Excel(name = "企业")
    private String qy;

    /** 能源类型 */
    @Excel(name = "能源类型")
    private String nylx;

    /** 用量 */
    @Excel(name = "用量")
    private Long yl;

    /** 月份 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "月份", width = 30, dateFormat = "yyyy-MM-dd")
    private Date yf;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setQy(String qy)
    {
        this.qy = qy;
    }

    public String getQy()
    {
        return qy;
    }
    public void setNylx(String nylx)
    {
        this.nylx = nylx;
    }

    public String getNylx()
    {
        return nylx;
    }
    public void setYl(Long yl)
    {
        this.yl = yl;
    }

    public Long getYl()
    {
        return yl;
    }
    public void setYf(Date yf)
    {
        this.yf = yf;
    }

    public Date getYf()
    {
        return yf;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("qy", getQy())
                .append("nylx", getNylx())
                .append("yl", getYl())
                .append("yf", getYf())
                .toString();
    }
}
